package com.aolong.archives.core.sysmanage.action;

import java.util.List;


import com.aolong.archives.core.sysmanage.entity.MenuTreeEntity;
import com.aolong.archives.core.sysmanage.service.IMenuService;
import com.rock.platform.action.BaseAction;

public class MenuAction extends BaseAction {

	private static final long serialVersionUID = 1L;

	private IMenuService serviceMenu;
	
	private String parentId;
	
	public String findByParentId() throws Exception
	{	
		List<MenuTreeEntity> menus = this.serviceMenu.findMenuByParentId(this.parentId);
		
		this.setJsonString(menus.toString());
		
		return SUCCESS;
	}

	public IMenuService getServiceMenu() {
		return serviceMenu;
	}

	public void setServiceMenu(IMenuService serviceMenu) {
		this.serviceMenu = serviceMenu;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
}
